package com.jvxb.manage.livable.entity;

import java.io.Serializable;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * @author jvxb
 * @since 2022-02-17
 */
@Data
@TableName("mysql_change_data")
public class MysqlChangeData implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "命令行")
    private String command;
    @ApiModelProperty(value = "变更工单id")
    private Long workOrderId;
    @ApiModelProperty(value = "回滚值")
    private String serializedValue;
    @ApiModelProperty(value = "是否已回滚：1是/0否")
    private Integer isRollback;
    @ApiModelProperty(value = "是否执行成功1是/0否")
    private Integer isSuccess;
    @ApiModelProperty(value = "执行失败描述")
    private String failDesc;
    @ApiModelProperty(value = "执行顺序")
    private Integer num;

    public static final String ID = "id";

    public static final String COMMAND = "command";

    public static final String WORK_ORDER_ID = "work_order_id";

    public static final String SERIALIZED_VALUE = "serialized_value";

    public static final String IS_ROLLBACK = "is_rollback";

    public static final String IS_SUCCESS = "is_success";
    public static final Integer IS_SUCCESS_YES = 1;
    public static final Integer IS_SUCCESS_NO = 0;

    public static final String FAIL_DESC = "fail_desc";

    public static final String NUM = "num";

}
